package leaf;

import component.MenuComponent;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class MenuItem extends MenuComponent {

    public MenuItem(String name,int level){
        this.name = name;
        this.level = level;
    }

    @Override
    public void print() {
        System.out.println("  "+name);
    }
}
